<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : basicMainPage.xsl
    Created on : 2. červen 2011, 16:29
    Author     : newohybat newohybat@gmail.com
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:c="http://code.google.com/p/kalkon/internalClub">

   <xsl:output method="xml"
                encoding="UTF-8"
                indent="yes"
                media-type="text/xml"/>
                
   <xsl:param name="url"></xsl:param>
  
    <xsl:template match="/">
        <html>
            <head>
                <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
                <link rel="stylesheet" type="text/css" href="./style.css"/>
                <title>KalKon - Hlavní stránka</title>
            </head>
            <body>
                <div id="top_bar"/>
                <h1 id="top_bar">
                    Kalkon Project
                </h1>
                <div id="center">
                <h1>Dostupné kluby</h1>
                    <xsl:apply-templates select="//c:club">
                        <xsl:sort select="c:name"/>
                    </xsl:apply-templates>
                <div class="clear">&#160;</div>
                </div>
                <div id="footer">&#169;KalKon project</div>
            </body>
        </html>
    </xsl:template>

    <xsl:template match="c:club">
        <div class="club">
            <div class="name"><xsl:value-of select="c:name"/></div>
            <address><xsl:value-of select="c:address"/></address>
            <div class="info">
                <div class="paragraph"><a href="{c:url}" target="_blank"><xsl:value-of select="c:url"/></a></div>
                <div class="paragraph"><xsl:value-of select="c:description"/></div>
            </div>
            <div class="link">
                <a href="http://www.google.com/calendar/render?cid={$url}{@id}.ical" target="_blank">
                    <img src="http://www.google.com/calendar/images/ext/gc_button1_cs.gif"/>
                </a><br />
                Klikněte pro přidání rozpisu do Vašeho Google Kalendáře.
            </div>
        </div>
    </xsl:template>
</xsl:stylesheet>
